<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script type="module">
   /* 
整个模块对象的结构:
{
  a: 123,
  b () {},
  default (){},
  d: {m: 1},
  e: 345
}
*/
    // 部分引入
    import {a, b} from './test.js'
    // 默认引入
    import {default as xxx} from './test.js'
    import test2 from './test.js' // 简写
    // 完整引入
    import * as test from './test.js'
    console.log(a, b, xxx, test2, test)
  </script>
</body>
</html>